package br.ufrj.dcc.comp2.musica.vista;

import java.awt.Dimension;

import javax.swing.JScrollPane;
import javax.swing.JTable;

public class ScrollPaneTabelaAlunoNota extends JScrollPane {

	private static final long serialVersionUID = 1L;

	JTable tabelaAlunoNota;

	String[] nomeDasColunas = {"Aluno" , "Nota"};
	
	Object[][] dados = {
			{"Luiz Felipe Braga Gomes", new Double(7.4)},
			{"Mario de Oliveira Bastos", new Double(5.3)},
	};
	
	public ScrollPaneTabelaAlunoNota() {
		
		tabelaAlunoNota = new JTable(dados, nomeDasColunas);
		this.setViewportView(tabelaAlunoNota);
		
		this.setPreferredSize(new Dimension(500, 300));
	}
}
